package org.shoukaiseki.supersaiyan;

import org.mybatis.spring.annotation.MapperScan;
import org.shoukaiseki.initdict.annotation.DictTypeEnumPackage;
import org.shoukaiseki.inittable.annotation.TableBuildScan;
import org.shoukaiseki.supersaiyan.common.config.SuperSaiyanConfig;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.autoconfigure.jdbc.DataSourceAutoConfiguration;
import org.springframework.boot.web.servlet.ServletComponentScan;
import org.springframework.context.annotation.ComponentScan;

import javax.annotation.Resource;

/**
 * 启动程序
 *
 * @author ruoyi
 */
@SpringBootApplication(exclude = { DataSourceAutoConfiguration.class })
@DictTypeEnumPackage(basePackage = {"org.shoukaiseki.**.enums.**"})
@TableBuildScan(basePackage = {"org.shoukaiseki.**.inittable.**"})
@ComponentScan(basePackages = {"org.shoukaiseki"})
// 指定要扫描的Mapper类的包的路径
@MapperScan("org.shoukaiseki.**.mapper")
@ServletComponentScan
public class SuperSaiyanApplication
{

    @Resource
    private SuperSaiyanConfig superSaiyanConfig;


    public static void main(String[] args)
    {
        // System.setProperty("spring.devtools.restart.enabled", "false");
        SpringApplication.run(SuperSaiyanApplication.class, args);
        System.out.println("(♥◠‿◠)ﾉﾞ  塞牙金 启动成功   ლ(´ڡ`ლ)ﾞ  \n" +
                " ____  _   _ ____  _____ ____    ____    _    _____   __ _    _   _ \n" +
                "/ ___|| | | |  _ \\| ____|  _ \\  / ___|  / \\  |_ _\\ \\ / // \\  | \\ | |\n" +
                "\\___ \\| | | | |_) |  _| | |_) | \\___ \\ / _ \\  | | \\ V // _ \\ |  \\| |\n" +
                " ___) | |_| |  __/| |___|  _ <   ___) / ___ \\ | |  | |/ ___ \\| |\\  |\n" +
                "|____/ \\___/|_|   |_____|_| \\_\\ |____/_/   \\_\\___| |_/_/   \\_\\_| \\_|\n" +
                "                                                                    \n");
    }
}
